package com.nan.controller;

import java.text.ParseException;

import com.nan.controller.base.BaseController;
import com.nan.model.ResInfo;
import com.nan.model.UserInfo;
import com.nan.model.UserLog;

public class IndexController extends BaseController {
	
	public void index() throws ParseException {

		setAttr("user", UserInfo.getUserCount());
		setAttr("today_user", UserInfo.getTodayUserCount());

		setAttr("res", ResInfo.getResCount());
		setAttr("today_res", ResInfo.getTodayResCount());

		setAttr("down", UserLog.getDownCount());
		setAttr("today_down", UserLog.getTodayDownCount());

		setAttr("page_header", "管理后台首页");
		setAttr("page_desc", "系统全局信息");
		setAttr("page_here", "Home");
		show("/views/index.jsp");
	}

}
